//
//  CDX_Device_iOS.cpp
//  codex
//
//  Created by Pol Overpower on 3/8/14.
//  Copyright (c) 2014 Pol Overpower. All rights reserved.
//

#include <codex/os/system/CDX_Device.h>
#include <codex/driver/CDX_Driver_Opengles.h>

namespace codex
{
    namespace system
    {
        NativeWindowType device::m_windowHandler = NULL;
        tBOOL device::m_bExit = FALSE;
        codex::IApplicationPtr device::m_application = NULL;
        
        
        tBOOL device::init(const char *appName, NativeWindowType _winType)
        {
            m_windowHandler = _winType;
            m_windowHandler.opaque = TRUE;
            
            codex::video::driver::createDriver(m_windowHandler);
            
            return TRUE;
        }
    }
}
